clear
version 8.0
#delimit ;
cd "Z:\interactionmodels\";                       * SET WORKING DIRECTORY;
log using addresults\electoralparties.log, replace;

*     ***************************************************************** *;
*     ***************************************************************** *;
*       File-Name:      electoralparties.do                             *;
*       Date:           01/09/2007                                      *;
*       Author:         MRG                                             *;
*       Purpose:        Provide results for electoral parties           *;
*       Input File:     STATA_mozaffar.dta                              *;
*       Output File:    electoralparties.log                            *;
*       Data Output:    none                                            *;
*       Previous file:                                                  *;
*       Machine:                                                        *;
*     ****************************************************************  *;
*     ****************************************************************  *;

set mem 10m;

use getdata\STATA_mozaffar.dta;

*     ****************************************************************  *;
*                         Institutional Model                           *;
*     ****************************************************************  *;

regress elecparties logmag10 proximity prescandidate prox_prescandidate, robust;


*     ****************************************************************  *;
*                           Sociological Model                          *;
*     ****************************************************************  *;

regress elecparties  fragmentation concentration frag_conc, robust;

*     ****************************************************************  *;
*                       Additive Socio-Institutional Model              *;
*     ****************************************************************  *;

regress elecparties  fragmentation concentration frag_conc logmag10 proximity 
        prescandidate prox_prescandidate, robust;


*     ****************************************************************  *;
*                       Interactive Socio-Institutional Model           *;
*     ****************************************************************  *;

regress elecparties  fragmentation concentration logmag10 frag_conc logmag10_frag  
logmag10_conc logmag10_frag_conc proximity prescandidate prox_prescandidate, robust;

log close;
exit;
